#ifndef __DMA_H
#define __DMA_H

#include <stdint.h>

void DMAA_Init(void);
void DMA_USART1_Rx_Init(uint8_t *buffer, uint32_t bufferSize);
void DMA_USART1_Tx_Init(void); 
void DMA_USART2_Rx_Init(uint8_t *buffer, uint32_t bufferSize);
void USART1_DMA_Send(uint8_t *data, uint16_t length);
uint8_t USART1_DMA_IsBusy(void);
uint16_t DMA_GetRemainingDataCount(void);
void DMA_Reset(uint8_t *buffer, uint32_t bufferSize);

#endif /* __DMA_H */
